package com.shen.dao;

import com.shen.pojo.Student;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Author:shen
 * CreateDate:2020/7/8.
 * Function:
 */
public interface StudentDao {
    //查询所有学生
    List<Student> getAllStudents();
    //按照id查询指定学生
    Student getStudentById(@Param("stuno")int id);
    //增加学生
    int insertStudent(Student student);
    //删除指定
    int deleteStudent(@Param("stuno")int id);
    //更新指定学生
    int updateStudent(Student student);
    //按照姓名，微信号，qq号 模糊查询
    List<Student> getStudentByNameAndWechatAndQQ(Map<String,String> map);
    //实现按照 按照 姓名 ,微信号,qq号,模糊查找学生人数
    int getStudentByNameAndWechatAndQQCount(Map<String,String> map);
}
